package fr.utt.lo02.CrazyEights.model.cards;

/**
 * A enum to determine the type and the points of a card
 */
public enum CardRank {
	Joker	(50),
	Ace		(20),
	Two		(2),
	Three	(3),
	Four	(4),
	Five	(5),
	Six		(6),
	Seven	(7),
	Eight	(32),
	Nine	(9),
	Ten		(10),
	Jack	(10),
	Queen	(10),
	King	(10);
	
	private int points;
	
	/**
	 * Constructor of CardRank, use to memorize the points
	 * assigned to the card when enum is instanced.
	 * 
	 * @param p (dummy variable)
	 */
	CardRank(int p) {points = p;}
	
	/**
	 * Get the points associated with the enum instanced.
	 * @return int
	 */
	public int getPoints() {return points;}
}